package com.hnit.applet.common.model;

import cn.hutool.core.date.DateUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 元数据
 * @author tongw
 * @date 2021/7/29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder(toBuilder = true)
public class Meta {
    @Builder.Default
    @ApiModelProperty(value = "当前时间", example = "2020-01-04 13:23:09")
    private String currentTime = DateUtil.now();
    @ApiModelProperty(value = "api版本号", example = "v1")
    private String apiVersion;
    @ApiModelProperty(value = "信息编码", example = "SUCCESS_USER_0001")
    private String code;
    @ApiModelProperty(value = "信息描述", example = "用户登录成功")
    private String message;
}
